<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
    <script type="text/javascript" src="/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/Public/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
<style type="text/css">

body {
  margin-left: 3px;
  margin-top: 0px;
  margin-right: 3px;
  margin-bottom: 0px;
}
.STYLE1 {
  color: #e1e2e3;
  font-size: 12px;
}
.STYLE6 {
  color: #000000; font-size: 12;
  padding:10px; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
  color: #344b50;
  font-size: 12px;
  padding:10px;
}
.STYLE21 {
  font-size: 12px;
  color: #3b6375;
}
.STYLE22 {
  font-size: 12px;
  color: #295568;
}
a span{color:white;}
</style>
<script>
var  highlightcolor='#d5f4fe';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
  cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
  cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
  cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
  cs[i].style.backgroundColor="";
}
}
</script>


</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="<?php echo ADMIN_PUC;?>images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 文章修改</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">
              <input type="checkbox" name="checkbox11" id="checkbox11" />
              全选      &nbsp;&nbsp;<img src="<?php echo ADMIN_PUC;?>images/add.gif" width="10" height="10" /> <a href="/Admin/Article/add"><span>添加</span></a>   &nbsp; <img src="<?php echo ADMIN_PUC;?>images/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;<img src="<?php echo ADMIN_PUC;?>images/edit.gif" width="10" height="10" /> 编辑   &nbsp;</span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
<form method="post" action="" enctype="multipart/form-data">
    <input type="hidden" name="ar_id" value="<?php echo ($articles["ar_id"]); ?>" />
    <table class="tbl" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" onmouseover="changeto()"  onmouseout="changeback()">
<!--      <tr>
        <td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">文章id</span></div></td>
        <td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">文章名称</span></div></td>
      </tr>-->
      <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6" align="right">文章标题</td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19" align="left"><input name="ar_title" type="text" value="<?php echo ($articles["ar_title"]); ?>" /></td>
  </tr>
    
    <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6" align="right">作者</td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19" align="left"><input name="ar_author" type="text" value="<?php echo ($articles["ar_author"]); ?>"/></td>
  </tr>
     <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6" align="right">推荐</td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19" align="left"><input <?php if($articles['ar_rem'] == 1): ?>checked="checked"<?php endif; ?> value="1" style="width:50px;" name="ar_rem" type="checkbox" value="<?php echo ($articles["ar_rem"]); ?>"/></td>
  </tr>
   <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6" align="right">缩略图</td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19" align="left">
          <input name="ar_pic" type="file" value="<?php echo ($articles["ar_pic"]); ?>"/>
          <?php if($articles['ar_pic'] != ''): ?><img src="/<?php echo ($articles["ar_pic"]); ?>" height="50">
            <?php else: ?>暂无图片<?php endif; ?>
        </td>
  </tr>

    <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6" align="right">所属栏目</td>
        <td class="cd" height="20" bgcolor="#FFFFFF" class="STYLE19" align="left">
          <select name="ar_cateid">
            <?php if(is_array($cateres)): $i = 0; $__LIST__ = $cateres;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option <?php if($articles['ar_cateid'] == $vo['cate_id']): ?>selected="selected"<?php endif; ?> value="<?php echo ($vo["cate_id"]); ?>"><?php echo str_repeat('-',$vo[level]*3); echo ($vo["cate_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
          </select>
        </td>
  </tr>
    <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6" align="right">文章内容</td>
        <td class="cd" height="20" bgcolor="#FFFFFF" class="STYLE19" align="left">
        <textarea name="ar_content" id="content"><?php echo ($articles["ar_content"]); ?></textarea>
        
        </td>
  </tr>
    <tr>
        <td height="20" colspan="2" bgcolor="#FFFFFF" class="STYLE6" align="center"><input type="submit" value="确定" /></td>
        
  </tr>
    </table>
    </form>
    </td>
  </tr>

</table>
</form>
  </td>
  </tr>
</table>
<script type="text/javascript">
    UE.getEditor('content',{initialFrameWidth:600,initialFrameHeight:460,});
</script>
</body>
</html>